import request from '@/utils/request'

// 查询边坡防护网监测数据列表
export function listFencenet(query) {
  return request({
    url: '/data/fencenet/list',
    method: 'get',
    params: query
  })
}

// 查询边坡防护网监测数据详细
export function getFencenet(id) {
  return request({
    url: '/data/fencenet/' + id,
    method: 'get'
  })
}

// 新增边坡防护网监测数据
export function addFencenet(data) {
  return request({
    url: '/data/fencenet',
    method: 'post',
    data: data
  })
}

// 修改边坡防护网监测数据
export function updateFencenet(data) {
  return request({
    url: '/data/fencenet',
    method: 'put',
    data: data
  })
}

// 删除边坡防护网监测数据
export function delFencenet(id) {
  return request({
    url: '/data/fencenet/' + id,
    method: 'delete'
  })
}
